using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ENTITIES;
using Utility;
using BUS;

public partial class admin_ChiTietNhanVien : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadData();

        }
    }
    private void LoadData()
    {
        try
        {
            int id = int.Parse(Request.QueryString["ID"]);
            TBNhanVien nhanvien = NhanVienBUS.GetByID(id);
            lit_MaNV.Text = nhanvien.manv.ToString();
            lit_TenNV.Text = nhanvien.tennv;
            Lit_SoDT.Text = nhanvien.sodt;
            Lit_DiaChi.Text = nhanvien.diachi;
            lit_Email.Text = nhanvien.email;
            lit_TaiKhoan.Text = nhanvien.taikhoan;
            lit_MatKhau.Text = nhanvien.matkhau;
           



        }
        catch
        {
            Response.Redirect("~/admin/DoanhSachNhanVien.aspx");
        }
    }
}
